package com.woniuxy.controller;

import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.WarehouseTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/warehousetype")
@Api(tags = "仓库添加仓库类型接口")
public class WarehouseTypeController {
    @Autowired
    WarehouseTypeService warehouseTypeService;
    @GetMapping("/findAll")
    @ApiOperation(value = "仓库类型详情")
    public ResponseEntity findAll(){
        return warehouseTypeService.findAll();
    }
}
